package godlock

//NonBlockingDistributedLock 非阻塞的分布式锁
type NonBlockingDistributedLock interface {
	Lock() bool
	Unlock() bool
}

//BlockDistributedLock 阻塞分布式锁
type BlockDistributedLock interface {
	LockBlock()
	UnlockBlock()
}

type DistributedLock interface {
	NonBlockingDistributedLock
	BlockDistributedLock
}
